package com.yangsir.mysite.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yangsir.mysite.common.R;
import com.yangsir.mysite.pojo.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author yf
* @description 针对表【user】的数据库操作Service
* @createDate 2024-06-22 16:55:16
*/
public interface UserService extends IService<User> {

    R<User> login(HttpServletRequest httpServletRequest, String username, String password);
    R<String> register(User user);
    R<User> upadteUser(HttpServletRequest httpServletRequest, User user);
    R<List<User>> selectUserByStr(String str);

    R<List<User>> getAllUser();

    R<String> createUser(User user);

    R<List<User>> getUserByRole(Integer userRole);

    R<String> deleteUserById(Long id);

    R<String> deactivateUser(User user);
}
